package crawler;

public class Main {
	public static void main(String[] args) {
		/*Kernel crawler = new Kernel("http://www.comunidadelectronicos.com/listas/e-tv.htm");
		crawler.crawl();
		//Kernel crawler = new Kernel("http://google.com");
		System.out.println("FIN");
		*/
		
		ThreadManager threadManager = new ThreadManager();
		threadManager.setController(new Controller(threadManager.getCTSPipe(), threadManager.getSTCPipe()));

//		threadManager.addCrawler(new Crawler(threadManager.getCTSPipe(), threadManager.getSTCPipe(), "http://marca.com"));
		threadManager.addCrawler(new Crawler(threadManager.getCTSPipe(), threadManager.getSTCPipe(), "http://google.com"));
//		threadManager.addCrawler(new Crawler(threadManager.getCTSPipe(), threadManager.getSTCPipe(), "http://www.epa.gov/multimedia/playercontents/video/greenscene4span/GreenScene4_span.txt"));

		
		
		threadManager.start();
		
	}

}
